<extend name="template/base_index" />

<block name="area_header">
    <title>母婴拼团{$price}:{$name}</title>
    <script type="text/javascript" charset="utf-8" src="__UPLOAD__/ueditor/1.4.3/ueditor.all.js"> </script>
    <link rel="stylesheet" href="__UPLOAD__/ueditor/1.4.3/themes/default/css/ueditor.css">
    <link rel="stylesheet" href="__CSS__/buysell.css">
    <link rel="stylesheet" href="__CSS__/style.css">
    <link rel="stylesheet" href="__CSS__/uc_i.css">
    <link rel="stylesheet" href="__CSS__/good_detail.css">
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

    <script>
        wx.config({
            debug: false,
            appId: "{$signPackage.appId}",
            timestamp:"{$signPackage.timestamp}",
            nonceStr: "{$signPackage.nonceStr}",
            signature: "{$signPackage.signature}",
            jsApiList: [
            // 所有要调用的 API 都要加到这个列表中
            'checkJsApi',
            'onMenuShareTimeline',
            'onMenuShareAppMessage'
        ]
        });
        wx.ready(function () {
            wx.checkJsApi({
                jsApiList: ['onMenuShareTimeline',
                    'onMenuShareAppMessage'], // 需要检测的JS接口列表，所有JS接口列表见附录2,
                success: function(res) {
                   // alert(JSON.stringify(res));
                }
            });

            // 在这里调用 API
            wx.onMenuShareAppMessage({
                title: '母婴拼团{$price},{$name}', // 分享标题
                desc: '母婴拼团，邀您共通参与拼团', // 分享描述

                link: '', // 分享链接
                imgUrl: 'http://muyin.8raw.com/api.php/picture/index?id={$imglist['0']['id']}', // 分享图标
                type: '', // 分享类型,music、video或link，不填默认为link
                dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                success: function () {
                    // 用户确认分享后执行的回调函数
                },
                cancel: function () {
                    // 用户取消分享后执行的回调函数
                }
            });

        });
    </script>


</block>

<block name="area_body">
    <div class="common_head">
        <a onclick="history.back()"><i class="fa fa-chevron-left"></i></a>
    </div>

    <div class="good-content">


            <div class="swiper-slide" style="position:relative;">
                <img src="http://muyin.8raw.com/api.php/picture/index?id={$imglist['0']['id']}" width="100%"/>

            </div>

            <div class="good-mtop"><h3>{$vo['name']}</h3></div>
            <!--<div class="good-intr"><p>{$vo['synopsis']}</div>-->
            <!--<br><span>原价：{$vo['ori_price']}</span><br><span class="quantity">库存:{$vo['quantity']}</span> 开始时间：{$vo['start_time']}</span><br>-->
            <div>
                <!--<div class="good-price" style="float:left"><i class="fa fa-jpy"></i>{$price}</div>-->
                <strike>
                <i class="fa fa-jpy"></i>原价：{$ori_price}</strike>

            </div>
            </br>
        <div class="good-main">
            <div class="good-dtop"> <div class="good-intr" style="float:left">{$end_time}结束</div> <div class="good-intr" style="float:right">共有{$attend_sum}人参团</div></div>
        </div>

        <div class="good-main">
            <div class="good-mtop"><h3>{$name}</h3></div>
            <div class="good-intr"><p>{$synopsis}</div>
            <div class="good-mimg">
                <!--<div class="good-dtop"><div class="good-source">货源：{$dt_origin_country}</div><div class="good-frank">邮费：{$postage}</div></div>-->
                <!--<div class="good-dtop"><div class="good-source">成团人数：{$group_sum}</div><div class="good-frank"></div></div>-->
                <h >支付开团，人数不足时自动退团</h>
                <!--<volist name="cheng_group['list']" id="cheng" >-->
                    <!--<div style="background-color:#ff4e68; width: 45%; height: 40px;float:left;border-radius: 5px;margin:5px;">-->
                        <!--<h4 style="color:white;text-align: center; top:50%;">已成团长：{$cheng['nickname']}</h4></div>-->
                    <!--</volist>-->

                <!--<volist name="group_people" id="people" >-->
                    <!--<div style="background-color:#ff4e68; width: 45%; height: 40px;float:left;border-radius: 5px;margin:5px;">-->
                        <!--<h4 style="color:white;text-align: center; top:50%;">参团：{$people['nickname']}</h4></div>-->
                <!--</volist>-->

                <div class="pror" >
                    <div style="">
                        <if condition="$group_status eq 2">{$group_sum}人团已成团，棒棒哒</br></if>
                        <if condition="$group_status eq 0">还未开团，请成为团长吧</br></if>
                        <if condition="$group_status eq 1">还差{$num}人成团,快去呼叫小伙伴吧</br></if>
                        <if condition="$group_status eq -1">拼团太火爆了，已经没货了</br></if>
                    </div>

                    <volist name="group_people" id="people">
                        <div class="user_img" ><img src="{$people['avatar']}" width="40px" height="40px"></div>
                    </volist>
                </div>




                    <!--<volist name="wei_group['list']" id ='wei'><div  font style="font-size:17px;color:#FF0000">-->
                        <!--<h> 团长：{$wei['nickname']}  当前人数{$wei['group_count']}-->
                            <!--<a href="{:U('Group/buy_good',array('id' => $id,'uid' => $buyuid,'type'=>'tuanyuan','group_id'=>$wei['id'],'counttype'=>$counttype))}">参与本团</a></h></div></volist>-->
                    <!--<div>-->
                        <!--</volist>-->
                        <!--<volist name="imglist" id ='img'>-->
                            <!--<img src="http://muyin.8raw.com/api.php/picture/index?id={$img['id']}&size=360" width="100%">-->
                        <!--</volist>-->
                    </div>
                    <div class="good-link">
                        {$detail}
                    </div>
            </div>
        </div>
    </div>
    <center>
        <a class="footer" href="{:U('Group/buy_good',array('id' => $id,'uid' => $buyuid,'counttype'=>$counttype))}">
            立即购买
        </a>
    </center>

    <script src="__JS__/jquery-weui.min.js"></script>







</block>